﻿class Communication extends XMLSocket {
	private var connected:Boolean=false;
	public function doConnect():Void {
		
		super.connect("192.168.0.75",8765);
			
	}
	
	public function onConnect(success:Boolean) {
		connected=success;
	}
		
	public function write(value:String):Void {
		super.send(value);
	}
	
	public function isConnected():Boolean {
		return connected;
	}

	
}